import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Index',
      component: () => import('../views/index.vue')
    },
    {
      path: '/townPage',
      name: 'townPage',
      component: () => import('../views/townPage.vue'),
      props: true
    },
    {
      path: '/villagePage',
      name: 'villagePage',
      component: () => import('../views/villagePage.vue'),
      props: true
    },
    {
      path: "/muHuPage",
      name: "muHuPage",
      component: () => import("../views/muHuPage.vue"),
    },
    {
      path: "/cattlePage",
      name: "cattlePage",
      component: () => import("../views/cattlePage.vue"),
    },
    {
      path: "/fangYiPage",
      name: "fangYiPage",
      component: () => import("../views/fangYiPage.vue"),
    },
    {
      path: "/fangYiZhanPage",
      name: "fangYiZhanPage",
      component: () => import("../views/fangYiZhanPage.vue"),
      props: true
    },
    {
      path: "/fangYiYuanPage",
      name: "fangYiYuanPage",
      component: () => import("../views/fangYiYuanPage.vue"),
      props: true
    },
  ]
})

export default router
